import Vue from 'vue'
import axios from 'axios'

import App from './App'
import router from './router'
import VueLazyload from 'vue-lazyload'
import store from './store'

if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
Vue.http = Vue.prototype.$http = axios
Vue.config.productionTip = false
 
Vue.use(VueLazyload, {
  error:'http://iph.href.lu/200x200?text=%E7%AD%89%E4%B8%8D%E5%88%B0%E4%BA%86',
  loading: 'http://cdn.uehtml.com/201402/1392662591495_1140x0.gif'
})

/* eslint-disable no-new */
new Vue({
  components: { App },
  router,
  store,
  template: '<App/>'
}).$mount('#app')
